﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProtoGame.GameLib;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using ProtoGame.GameLib.Entities;

namespace ProtoGame.DescritoresContent
{
    public static class PGIMGMontanha
    {
        private const ushort tileWidth = 32;
        private const ushort tileHeight = 32;

        public static Tileset CriarTileset(ContentManager content)
        {
            return new Tileset(content.Load<Texture2D>(@"Images\Tilesets\montanha"), tileWidth, tileHeight);
        }

        public static Animator CriarAnimatorCanoPerdido()
        {
            Animator canoAnim = new Animator();
            canoAnim.AddStaticAnimation(0, 42);

            return canoAnim;
        }

        public static class EstadosCanoFurado
        {
            public const byte Seco = 0;
            public const byte Vasando = 1;
            public const byte Remendado = 2;
        }

        public static Animator CriarAnimatorCanoFurado()
        {
            Animator canoAnim = new Animator();
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Seco, 6);
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Vasando, 44);
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Remendado, 48);

            return canoAnim;
        }

        public static Animator CriarAnimatorCanoFuradoVertical()
        {
            Animator canoAnim = new Animator();
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Seco, 4);
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Vasando, 8);
            canoAnim.AddStaticAnimation(EstadosCanoFurado.Remendado, 43);

            return canoAnim;
        }

        public static Animator CriarAnimatorCanoFim()
        {
            Animator canoAnim = new Animator();
            canoAnim.AddStaticAnimation(0, 7);
            canoAnim.AddStaticAnimation(1, 9);

            return canoAnim;
        }
    }
}
